import fetch from '@/utils/fetch2'

export function restSel(){
  return fetch({
    method: 'get',
    url: '/api/fs/restaurant/select'
  })
}
export function restKindsSel(query){
  return fetch({
    method: 'get',
    url: '/api/fs/kind/select?restaurantId='+query
  })
}
export function fetchList(query) {
  return fetch({
    method: 'post',
    url: '/api/fs/restaurant/list',
    data: query
  })
}

export function create(query) {
  return fetch({
    method: 'post',
    url: '/api/fs/restaurant/add',
    data: query
  })
}

export function update(query) {
  return fetch({
    method: 'post',
    url: '/api/fs/restaurant/update',
    data: query
  })
}

export function del(query) {
  return fetch({
    method: 'post',
    url: '/api/fs/restaurant/del',
    data: query
  })
}

